<div id="border"> 
<form action="" enctype="multipart/form-data" method="post"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td valign="top">       
        <table width="705" border="0" align="center" id="usertitle">
          <tr>
            <td><h3 style=""><?=$Z_TRANS->value('menu_job_wanted')?> <?=$Z_TRANS->value('title_detail')?></h3></td>
            <td align="right"><a href="<?=site_url("job_wanted")?>"><input class="post_ads" name="" type="button" value=" <?=$Z_TRANS->value('menu_post_job')?> " /></a></td>
          </tr>
        </table>
        <div id="content">
        <div class="user_line_border_top">&nbsp;</div>
        <div style="margin:10px auto;"></div>
 		<div class="full_detail">		
			<?php  foreach ($select->result_array() as $row){ ?>   
                
            <table width="100%" border="0">
            <tr>
                <td valign="top" style="padding-left:10px;"><font size="-1" color="#006699"><?=htmlspecialchars($row["job_wan_subject"])?></font></td>
                <td width="28%" valign="top">
                  <font color="#006699"><?=$Z_TRANS->value('title_posted_on')?>: &nbsp;</font><b><?=datetime_postgres_to_html($row["date_create"])?></b><br/>
                  <font color="#006699"><?=$Z_TRANS->value('title_posted_by')?>:&nbsp;</font><?=$row["user_login"]?> <font color="#FF0000">1 <?=$Z_TRANS->value('title_hit')?></font>
                </td>
            </tr>
            <tr>      	
                <td style="padding-left:10px;" width="72%"><?=nl2br(htmlspecialchars($row["job_wan_desc"]))?></td>
                <td width="28%" align="right" style="padding-right:10px;"></td> 
            </tr>
            </table>
            <br />    
            <? }?> 
            <?php $Z_USER = Zsession::getUserFromSession();                                
                foreach ($selectimage->result() as $rowselect){ 
                            $fullname=$rowselect->file_name;
                            $shortname=(strlen($fullname)>20)?substr($fullname,0,20)."...":substr($fullname,0,20);                                   
             ?>                                          
             <div class="file_ext">
             	<? $file_ext = next(explode(".", $fullname));
					if($file_ext=="docx" || $file_ext=="doc"){?>
                    <img src="<?=base_url()?>images/doc.png" width="16" height="16" align="left" />
				<? }elseif($file_ext=="pdf"){?>
                	<img src="<?=base_url()?>images/pdf.png" width="16" height="16" align="left" />
                <? }?>
                &nbsp; <a href="<?=base_url()?><?=$rowselect->file_path?>/<?=$fullname?>"><?=$fullname?></a>
             </div>
             <? }?>             	 	 	
  	 	</div> 
     </div>  

        </td>
        <td width="254" valign="top">
			<?php include APPPATH."views/templates/common/right_content.php"; ?>
         </td>
         
      </tr>
  </table>
  </form>
</div>